package com.ruoyi.accountant.domain.other;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Cashflow {
    private List<CashFlowItem> incomeList = new ArrayList<>();
    private List<CashFlowItem> payList = new ArrayList<>();

    public void addIncome(CashFlowItem cashFlowItem) {
        incomeList.add(cashFlowItem);
    }

    public void addPay(CashFlowItem cashFlowItem) {
        payList.add(cashFlowItem);
    }
}
